//package work.jame.blog.configuration.security.handler;
//
//import org.springframework.http.HttpStatus;
//import org.springframework.security.core.Authentication;
//import org.springframework.security.core.AuthenticationException;
//import org.springframework.security.core.context.SecurityContextHolder;
//import org.springframework.security.web.AuthenticationEntryPoint;
//import org.springframework.stereotype.Component;
//import work.jame.blog.framework.result.Result;
//import work.jame.blog.framework.utils.http.WebUtils;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
///**
// * 处理认证失败
// *
// * @author : Jame
// * @date : 2023-05-10 14:32
// **/
////@Component
//public class AuthenticationEntryPointImpl implements AuthenticationEntryPoint {
//
//    @Override
//    public void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) {
//        Result<?> result = Result.create(null, HttpStatus.UNAUTHORIZED.value(), "账号或密码错误");
//        WebUtils.respondResult(httpServletResponse, result);
//    }
//}


//不通过security的处理,进行限流
